
/**
 * 
 AUrl 获取楼栋号
 FURL获取楼层号
 RUrl 获取宿舍ID
 http://120.25.151.122/
 */
//http://nfu.zhihuianxin.net/electric/getData/
const BASE_URL = " http://120.25.151.122/";
const ReserveAMUrl = "getReserveAM"
export default{
	async getRoomInfo(url,architectureId="",floorId ="",roomId=""){
	    const result =  await uni.$ajax(BASE_URL+ url +`?areaId=1&architectureId=${architectureId}&floorId=${floorId}&roomId=${roomId}`,
		"GET","","",{});
		return result.data
	},
	async getPRate(roomId){
		const result =  await uni.$ajax( BASE_URL+ReserveAMUrl+`?roomId=${roomId}`,"GET",{}," ");
		return result.data
	},
	AUrl : "getArchitectures"
	,
	FUrl : "getFloors"
	,
	RUrl :"getRooms"
}